.switch {
    display: flex;
    width: fit-content;
    position: relative;
    color: var(--switcher-color);
    background-color: var(--switcher-bg);
    border-radius: 4px;
  }
  
  .element {
    cursor: pointer;
    z-index: 10;
  
    box-sizing: border-box;
    min-width: 116px;
    height: 40px;
    padding: 8px 21px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    &.active {
      color: var(--switcher-active-color);
    }
  }
  
  .slider {
    position: absolute;
    background-image: var(--switcher-active-bg);
    transition: left 0.2s, width 0.2s;
    height: 40px;
  
    &.left {
      border-top-left-radius: 4px;
      border-bottom-left-radius: 4px;
    }
  
    &.right {
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
    }
  }
  